﻿using Common.Configuration;
using Microsoft.Extensions.Options;

namespace Common.Configuration;

[ConfigurationProperties(Prefix = "redis")]
public class RedisConfig : IOptions<RedisConfig>
{
    public string Host { get; set; } = "localhost";
    public string Port { get; set; } = "6379";
    public int Database { get; set; } = 0;
    public string Auth { get; set; } = string.Empty;
    public RedisConfig Value => this;
}